Skip to content

wasm32-wasip1-threads: Correct llvm target name#157644

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kolayne:patch-1
Jun 18, 2026
Merged

wasm32-wasip1-threads: Correct llvm target name#157644
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
kolayne:patch-1

Conversation

@kolayne

@kolayne kolayne commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Intends to fix #131007, a problem with cross-compiling Rust+C++ to wasm32-wasip1-threads: clang will be told to compile for --target=wasm32-wasi, which it interprets as wasm32-wasip1, which is not compatible with wasm32-wasip1-threads.

I wonder if there might be any compatibility issue or something depending on the old incorrect name...

@rustbot

rustbot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

These commits modify compiler targets.
(See the Target Tier Policy.)

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jun 9, 2026
@rustbot

rustbot commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @mu001999 (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue
Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 73 candidates
  • Random selection from 20 candidates

@mu001999

mu001999 commented Jun 9, 2026

Copy link
Copy Markdown
Member

r? alexcrichton

@rustbot rustbot assigned alexcrichton and unassigned mu001999 Jun 9, 2026
@alexcrichton

Copy link
Copy Markdown
Member

Apologies but I no longer maintain this wasm target, so I'd prefer it if someone else took a look at this.

r? compiler

@rustbot rustbot assigned adwinwhite and unassigned alexcrichton Jun 9, 2026
@adwinwhite

Copy link
Copy Markdown
Contributor

This fix seems correct to me according to the wasi README.
But I'm unfamiliar with the historical context here.

Would love to hear opinions from target maintainers.
@g0djan @abrown @loganek

@abrown

abrown commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Yeah, it looks right to me as well. Like @alexcrichton, I'm also not actively maintaining this target any more, though, so it might be more official if @loganek chimes in with a +1.

@loganek loganek left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable to me

View changes since this review

kolayne added a commit to kolayne/rust that referenced this pull request Jun 18, 2026
@abrown has
[commented](rust-lang#157644 (comment))
that he is no longer maintaining the target.

Update the target maintainers list accordingly.
@jieyouxu jieyouxu added the O-wasm Target: WASM (WebAssembly), http://webassembly.org/ label Jun 18, 2026

@jieyouxu jieyouxu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since target maintainer(s) have taken a look,

Thanks
r? me @bors r+ rollup

View changes since this review

@rust-bors

rust-bors Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 6a6599c has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors Bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Jun 18, 2026
@rust-bors rust-bors Bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 18, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
wasm32-wasip1-threads: Correct llvm target name

Intends to fix rust-lang#131007, a problem with cross-compiling Rust+C++ to wasm32-wasip1-threads: clang will be told to compile for `--target=wasm32-wasi`, which it interprets as `wasm32-wasip1`, which is not compatible with `wasm32-wasip1-threads`.

I wonder if there might be any compatibility issue or something depending on the old incorrect name...
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
rustc book: Update wasm32-wasip1-threads's maintainers list

@abrown has
[commented](rust-lang#157644 (comment)) that he is no longer maintaining the target.

Update the target maintainers list accordingly.

r? abrown
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
wasm32-wasip1-threads: Correct llvm target name

Intends to fix rust-lang#131007, a problem with cross-compiling Rust+C++ to wasm32-wasip1-threads: clang will be told to compile for `--target=wasm32-wasi`, which it interprets as `wasm32-wasip1`, which is not compatible with `wasm32-wasip1-threads`.

I wonder if there might be any compatibility issue or something depending on the old incorrect name...
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 18, 2026
rustc book: Update wasm32-wasip1-threads's maintainers list

@abrown has
[commented](rust-lang#157644 (comment)) that he is no longer maintaining the target.

Update the target maintainers list accordingly.

r? abrown
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 18, 2026
rustc book: Update wasm32-wasip1-threads's maintainers list

@abrown has
[commented](rust-lang#157644 (comment)) that he is no longer maintaining the target.

Update the target maintainers list accordingly.

r? abrown
rust-bors Bot pushed a commit that referenced this pull request Jun 18, 2026
Rollup of 8 pull requests

Successful merges:

 - #158056 (Put internal lints into a single combined pass)
 - #151132 (Take care to use MSG_EOR with SOCK_SEQPACKET sockets)
 - #157644 (wasm32-wasip1-threads: Correct llvm target name)
 - #157912 (stabilize str_from_utf16_endian)
 - #158048 (Revert "add regression test for Redundant memory strores with mut parameters in by-value returns")
 - #158051 (Document `with_added_extension` edge cases)
 - #158054 (fix unresolved import suggestion before outer attributes)
 - #158062 (rustc book: Update wasm32-wasip1-threads's maintainers list)
@rust-bors rust-bors Bot merged commit 732e5f7 into rust-lang:main Jun 18, 2026
12 checks passed
rust-timer added a commit that referenced this pull request Jun 18, 2026
Rollup merge of #158062 - kolayne:patch-2, r=jieyouxu

rustc book: Update wasm32-wasip1-threads's maintainers list

@abrown has
[commented](#157644 (comment)) that he is no longer maintaining the target.

Update the target maintainers list accordingly.

r? abrown
@rustbot rustbot added this to the 1.98.0 milestone Jun 18, 2026
rust-timer added a commit that referenced this pull request Jun 18, 2026
Rollup merge of #157644 - kolayne:patch-1, r=jieyouxu

wasm32-wasip1-threads: Correct llvm target name

Intends to fix #131007, a problem with cross-compiling Rust+C++ to wasm32-wasip1-threads: clang will be told to compile for `--target=wasm32-wasi`, which it interprets as `wasm32-wasip1`, which is not compatible with `wasm32-wasip1-threads`.

I wonder if there might be any compatibility issue or something depending on the old incorrect name...
@kolayne kolayne deleted the patch-1 branch June 18, 2026 12:16
@kolayne kolayne restored the patch-1 branch June 18, 2026 12:16
kolayne added a commit to kolayne/xgrammar-rs that referenced this pull request Jun 20, 2026
Add support for the wasm32-wasip1-threads target by bumping the
`cc` version. Actual fixes: rust-lang/rust#157644, rust-lang/cc-rs#1763.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-wasm Target: WASM (WebAssembly), http://webassembly.org/ S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wasm32_wasip1_threads's llvm_target is mistake

8 participants